<html>

<head>
	<title>moba2d</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="./style.css">
	<link rel="stylesheet" href="./font/demo.css">
	<link rel="stylesheet" href="./font/iconfont.css">
	<script src="./font/iconfont.js"></script>
</head>

<body>
	<script src="./main.ts"></script>

	<div style="width: 100%; height: 100%;  position: relative;">
		<div id="main"></div>

		<div id="loading" style="display: none;">
			<div id="loadingbox">
				<div class="spinner"></div>
				<div id="loadingtext">正在连接...</div>
			</div>
		</div>
	</div>
</body>
<script>

	window.loading = function (text = "正在连接...") {
		document.getElementById("loadingtext").innerText = text
		document.getElementById("loading").style.display = "block"
	};

	window.closeLoading = function () {
		document.getElementById("loading").style.display = "none"
	};

</script>

</html>